

#include "mpi_cmd.h"
#include "mpi.h"
#include "mdi_common.h"

int sgks_mpi_cmd_SetMode(sgks_mpi_manager_s *mpi, sgks_mdi_cmd_mode_e dsp_cmd_mode)
{

    u8 *msg_buf = NULL;

    SGKS_MDI_DRV_BUFF(msg_buf);
	*(u32*)msg_buf = dsp_cmd_mode;
	//memcpy(msg_buf, &dsp_cmd_mode, sizeof(sgks_mdi_cmd_mode_e));
    SGKS_MDI_DRV_IOCTL(SGKS_MDI_OPERATION_SETCMDMODE, 0, sizeof(sgks_mdi_cmd_mode_e), SGKS_ERR_SYS_DRIVERIOCTLERR);
	
    return SGKS_SUCCESS;

}


int sgks_mpi_cmd_Send(char *dsp_cmd, int dsp_cmd_size)
{


	u8 *msg_buf = NULL;
	
    SGKS_MDI_DRV_BUFF(msg_buf);
	memcpy(msg_buf, dsp_cmd, dsp_cmd_size);

	SGKS_MDI_DRV_IOCTL(SGKS_MDI_OPERATION_SENDCMD, 0, dsp_cmd_size, SGKS_ERR_SYS_DRIVERIOCTLERR);


   return SGKS_SUCCESS;

}







